Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / ui / src / androidMain / kotlin / org / meshtastic / core / ui / util / ContextExtensions.kt

Displaying Raw • Download

core/ui/src/androidMain/kotlin/org/meshtastic/core/ui/util/ContextExtensions.kt 01cd54907d62cd90913d3d071b6bc240cae365ef (01cd5490) Text, 1.36 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.ui.util

Tff7b72import T7ee787android.content.Context
Tff7b72import T7ee787android.content.Intent
Tff7b72import T7ee787android.provider.Settings
Tff7b72import T7ee787android.widget.Toast
Tff7b72import T7ee787org.jetbrains.compose.resources.StringResource
Tff7b72import T7ee787org.jetbrains.compose.resources.getString

Tff7b72suspend Tff7b72fun Te6edf3ContextTb4b4b4.Td2a8ffshowToastTb4b4b4(Te6edf3stringResourceTb4b4b4: Te6edf3StringResourceTb4b4b4, Tff7b72vararg Te6edf3formatArgsTb4b4b4: Tffa657AnyTb4b4b4) Tb4b4b4{
Te6edf3ToastTb4b4b4.Te6edf3makeTextTb4b4b4(Tff7b72thisTb4b4b4, Te6edf3getStringTb4b4b4(Te6edf3stringResourceTb4b4b4, Tff7b72*Te6edf3formatArgsTb4b4b4)Tb4b4b4, Te6edf3ToastTb4b4b4.Te6edf3LENGTH_SHORTTb4b4b4)Tb4b4b4.Te6edf3showTb4b4b4(Tb4b4b4)
Tb4b4b4}

Tff7b72suspend Tff7b72fun Te6edf3ContextTb4b4b4.Td2a8ffshowToastTb4b4b4(Te6edf3textTb4b4b4: Tffa657StringTb4b4b4) Tb4b4b4{
Te6edf3ToastTb4b4b4.Te6edf3makeTextTb4b4b4(Tff7b72thisTb4b4b4, Te6edf3textTb4b4b4, Te6edf3ToastTb4b4b4.Te6edf3LENGTH_SHORTTb4b4b4)Tb4b4b4.Te6edf3showTb4b4b4(Tb4b4b4)
Tb4b4b4}

Tff7b72fun Te6edf3ContextTb4b4b4.Td2a8ffopenNfcSettingsTb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3intent Tff7b72= Te6edf3IntentTb4b4b4(Te6edf3SettingsTb4b4b4.Te6edf3ACTION_NFC_SETTINGSTb4b4b4)
Te6edf3startActivityTb4b4b4(Te6edf3intentTb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.05s